package com.moorecat.bean;

/**
 * 树形结构体节点
 * @author Minglong.Yu
 * @version 1.0 
 * @created Jun 27, 2011 9:53:32 PM
 */
public class TreeNode {
	private int id;
	private String name;
	private int parentId;

    public TreeNode(){}

    public TreeNode(int id, String name, int parentId) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
    }

    /**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the parentId
	 */
	public int getParentId() {
		return parentId;
	}
	/**
	 * @param parentId the parentId to set
	 */
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}
	
}
